home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Does Borland C++ 5.0 still work with normal C???
- Date: Thu, 29 Feb 96 14:27:30 GMT
- Organization: none
- Message-ID: <825604050snz@genesis.demon.co.uk>
- References: <n4mwd.33.000A228B@magg.net> <4gdkv3$q8a@druid.borland.com> <4ggsie$1fg@dopey.magg.net> <4gqdf7$jfo@redstone.interpath.net> <4gvu67$es7@hacgate2.hac.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4gvu67$es7@hacgate2.hac.com>
- collins@thor.tu.hac.com "Ron Collins" writes:
-
- >The expression in question is "sizeof 'a'", which returns the size of
- >an expression, not a type.
-
- Well it returns the size of the type of the result of the expression. The
- size of an object or value is purely a function of its type.
-
- > The result type of the expression 'a' is an
- >int, not a char. Therefore, "(sizeof 'a') => 2" is correct.
-
- Assuming (as I think is the case here) that sizeof(int) is 2.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-